//
// Created by macrs on 2023/10/23.
//

#include "spi.h"

int mdf_spi_bus_core_open(struct mdf_dev *core)
{

}

int mdf_spi_bus_core_close(struct mdf_dev *core)
{

}

ssize_t mdf_spi_bus_core_read(struct mdf_dev *core, int offset, void *buf, size_t size)
{

}

ssize_t mdf_spi_bus_core_write(struct mdf_dev *core, int offset, const void *buf, size_t size)
{

}

int mdf_spi_bus_core_register(struct mdf_spi_bus_core *spi_bus, const char *name, struct mdf_drv *drv)
{
    static struct mdf_dev_ops ops =
        {
            mdf_spi_bus_core_open,
            mdf_spi_bus_core_close,
            mdf_spi_bus_core_read,
            mdf_spi_bus_core_write
        };

//    return mdf_dev_register(&spi_bus->core, name, Mdf_Dev_Spi, MDF_OFLAG_RDWR, &ops, drv);
}

int mdf_spi_dev_core_open(struct mdf_dev *core)
{

}

int mdf_spi_dev_core_close(struct mdf_dev *core)
{

}

ssize_t mdf_spi_dev_core_read(struct mdf_dev *core, int offset, void *buf, size_t size)
{

}

ssize_t mdf_spi_dev_core_write(struct mdf_dev *core, int offset, const void *buf, size_t size)
{

}

int mdf_spi_dev_core_register(struct mdf_spi_dev_core *spi_dev, const char *name)
{
    static struct mdf_dev_ops ops =
        {
            mdf_spi_dev_core_open,
            mdf_spi_dev_core_close,
            mdf_spi_dev_core_read,
            mdf_spi_dev_core_write
        };

//    return mdf_dev_register(&spi_dev->core, name, Mdf_Dev_Spi, MDF_OFLAG_RDWR, &ops, drv);
}